package com.yihu.beans;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.yihu.web.bean.artwork.type.ArtworkParentType;

public class ArtworkCategory  implements Serializable{
	
	public String value;
	
	@NotNull(message="ArtworkCategory 名字不能为空")
	public String name;
	private ArtworkParentType parent;
	private ArtworkParentType children;//子分类
	
	public ArtworkParentType getChildren() {
		return children;
	}
	public void setChildren(ArtworkParentType children) {
		this.children = children;
	}
	
	public ArtworkParentType getParent() {
		return parent;
	}
	public void setParent(ArtworkParentType parent) {
		this.parent = parent;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	

		/*if(InfoHelp.isBlank(cid)){
			if(this.getParent()!=null){
				this.cid = this.getParent().getCid();
			}
		}*/


}
